<template>
  <ph-view>
    <ph-blockquote type="primary">该组件为独立组件<br/><a href="https://www.npmjs.com/package/ph-colorpicker" target="_blank">npm 地址</a></ph-blockquote>
    <ph-tab>
      <ph-tab-panel title="案例展示">
        <ph-preview url="/colorBtn-free"/>
        <demo/>
        <ph-pretty>{{ demo1 }}</ph-pretty>
        <ph-pretty>{{ demo2 }}</ph-pretty>
        <ph-pretty>{{ demo3 }}</ph-pretty>
      </ph-tab-panel>
      <ph-tab-panel title="基本介绍">
        <ph-pretty>{{ baseUsage }}</ph-pretty>
      </ph-tab-panel>
    </ph-tab>
  </ph-view>
</template>
<script lang="ts">
import { defineComponent, ref } from "vue";
import { PhTab, PhTabPanel, PhBlockquote, PhView } from "@/index";
import * as Data from "../data/color";
import Demo from "./free/color-btn.vue";
export default defineComponent({
  components: { Demo, PhTab, PhTabPanel, PhBlockquote, PhView },
  setup() {
    return { ...Data };
  },
});
</script>
